#include <iostream>
#include <stdio.h>
#include <string>
#include <fstream>
using namespace std;

class UI {
private:
    int m_bTask; 
    // encrypt from keyboard m_bTask = 1
    // encrypt from file m_bTask = 2
    // decrypt from keyboard m_bTask = 3
    // decrypt from file m_bTask = 4
    int m_bEncryptType; //0 = from keyboard, 1 = from file.
    int m_bDecryptType; //0 = from keyboard, 1 = from file.
public:
    //setter, getter
    //for m_bTask
    int GetTask() {
        return m_bTask;
    }
    void SetTask(int task) {
        m_bTask = task;
    }

    //for m_bEncryptType
    int GetEncryptType() {
        return m_bEncryptType;
    }
    void SetEncryptType(int encryptType) {
        m_bEncryptType = encryptType;
    }

    //for m_bDecryptType
    int GetDecryptType() {
        return m_bDecryptType;
    }
    void SetDecryptType(int decryptType) {
        m_bDecryptType = decryptType;
    }
    //end getter, setter

    //method prototypes
    void ShowHomepage();
    void ShowEncryptFromKeyboardPage();
    void ShowEncryptFromFilePage();
    void ShowDecryptFromKeyboardPage();
    void ShowDecryptFromFilePage();
    //end method prototypes

};

//UI's methods declaration:
void UI::ShowHomepage(){
    system("cls");
    cout<<"This program is an Encryptor/Decryptor..."<<endl;
    cout<<"Plesase choose function to do from list followed..."<<endl;
    cout<<"1. Encrypt from keyboard."<<endl;
    cout<<"2. Encrypt from file."<<endl;
    cout<<"3. Decrypt from keyboard."<<endl;
    cout<<"4. Decrypt from file."<<endl;
    cout<<"5. Exit."<<endl;
}

void UI::ShowEncryptFromKeyboardPage() {
    system("cls");
    cout<<"Input a string then hit Enter to do encrypt..."<<endl;
    cout<<"Or hit Esc to return to Homepage."<<endl;  
    cout<<">>";
}

void UI::ShowEncryptFromFilePage() {
    system("cls");
    cout<<"Input file path to the file contains string to be encrypted"<<endl;
    cout<<"Or hit Esc to return to Homepage."<<endl;  
    cout<<">>";
}

void UI::ShowDecryptFromKeyboardPage() {
    system("cls");
    cout<<"Input a string then hit Enter to do decrypt..."<<endl;
    cout<<"Or hit Esc to return to Homepage."<<endl;  
    cout<<">>";
}

void UI::ShowDecryptFromFilePage() {
    system("cls");
    cout<<"Input file path to the file contains string to be decrypted"<<endl;
    cout<<"Or hit Esc to return to Homepage."<<endl;  
    cout<<">>";
}


//end UI's methods declaration: